/*
 * Flowable REST API
 * # flowable / flowəb(ə)l /    - a compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.  - a lightning fast, tried and tested BPMN 2 process engine written in Java. It is Apache 2.0 licensed open source, with a committed community.  - can run embedded in a Java application, or as a service on a server, a cluster, and in the cloud. It integrates perfectly with Spring. With a rich Java and REST API, it is the ideal engine for orchestrating human or system activities.
 *
 * OpenAPI spec version: v1
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ibm.risk.irmp.workflow.client.flowable.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;

/**
 * BatchResponse
 */

public class BatchResponse {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("url")
  private String url = null;

  @JsonProperty("batchType")
  private String batchType = null;

  @JsonProperty("searchKey")
  private String searchKey = null;

  @JsonProperty("searchKey2")
  private String searchKey2 = null;

  @JsonProperty("createTime")
  private OffsetDateTime createTime = null;

  @JsonProperty("completeTime")
  private OffsetDateTime completeTime = null;

  @JsonProperty("status")
  private String status = null;

  @JsonProperty("tenantId")
  private String tenantId = null;

  public BatchResponse id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "8", value = "")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public BatchResponse url(String url) {
    this.url = url;
    return this;
  }

   /**
   * Get url
   * @return url
  **/
  @ApiModelProperty(example = "http://localhost:8182/management/batches/8", value = "")
  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public BatchResponse batchType(String batchType) {
    this.batchType = batchType;
    return this;
  }

   /**
   * Get batchType
   * @return batchType
  **/
  @ApiModelProperty(example = "processMigration", value = "")
  public String getBatchType() {
    return batchType;
  }

  public void setBatchType(String batchType) {
    this.batchType = batchType;
  }

  public BatchResponse searchKey(String searchKey) {
    this.searchKey = searchKey;
    return this;
  }

   /**
   * Get searchKey
   * @return searchKey
  **/
  @ApiModelProperty(example = "1:22:MP", value = "")
  public String getSearchKey() {
    return searchKey;
  }

  public void setSearchKey(String searchKey) {
    this.searchKey = searchKey;
  }

  public BatchResponse searchKey2(String searchKey2) {
    this.searchKey2 = searchKey2;
    return this;
  }

   /**
   * Get searchKey2
   * @return searchKey2
  **/
  @ApiModelProperty(example = "1:24:MP", value = "")
  public String getSearchKey2() {
    return searchKey2;
  }

  public void setSearchKey2(String searchKey2) {
    this.searchKey2 = searchKey2;
  }

  public BatchResponse createTime(OffsetDateTime createTime) {
    this.createTime = createTime;
    return this;
  }

   /**
   * Get createTime
   * @return createTime
  **/
  @ApiModelProperty(example = "2020-06-03T22:05:05.474+0000", value = "")
  public OffsetDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(OffsetDateTime createTime) {
    this.createTime = createTime;
  }

  public BatchResponse completeTime(OffsetDateTime completeTime) {
    this.completeTime = completeTime;
    return this;
  }

   /**
   * Get completeTime
   * @return completeTime
  **/
  @ApiModelProperty(example = "2020-06-03T22:05:05.474+0000", value = "")
  public OffsetDateTime getCompleteTime() {
    return completeTime;
  }

  public void setCompleteTime(OffsetDateTime completeTime) {
    this.completeTime = completeTime;
  }

  public BatchResponse status(String status) {
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @ApiModelProperty(example = "completed", value = "")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public BatchResponse tenantId(String tenantId) {
    this.tenantId = tenantId;
    return this;
  }

   /**
   * Get tenantId
   * @return tenantId
  **/
  @ApiModelProperty(value = "")
  public String getTenantId() {
    return tenantId;
  }

  public void setTenantId(String tenantId) {
    this.tenantId = tenantId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BatchResponse batchResponse = (BatchResponse) o;
    return Objects.equals(this.id, batchResponse.id) &&
        Objects.equals(this.url, batchResponse.url) &&
        Objects.equals(this.batchType, batchResponse.batchType) &&
        Objects.equals(this.searchKey, batchResponse.searchKey) &&
        Objects.equals(this.searchKey2, batchResponse.searchKey2) &&
        Objects.equals(this.createTime, batchResponse.createTime) &&
        Objects.equals(this.completeTime, batchResponse.completeTime) &&
        Objects.equals(this.status, batchResponse.status) &&
        Objects.equals(this.tenantId, batchResponse.tenantId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, url, batchType, searchKey, searchKey2, createTime, completeTime, status, tenantId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BatchResponse {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    url: ").append(toIndentedString(url)).append("\n");
    sb.append("    batchType: ").append(toIndentedString(batchType)).append("\n");
    sb.append("    searchKey: ").append(toIndentedString(searchKey)).append("\n");
    sb.append("    searchKey2: ").append(toIndentedString(searchKey2)).append("\n");
    sb.append("    createTime: ").append(toIndentedString(createTime)).append("\n");
    sb.append("    completeTime: ").append(toIndentedString(completeTime)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    tenantId: ").append(toIndentedString(tenantId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
